package com.links.sbademo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.client.discovery.DiscoveryClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/** 
* @author : lichun
* @date ：02-二月-24 上午 09:26 
* 
*/
@Configuration
public class Discovery {
	
	@Autowired
	private DiscoveryClient discoveryClient;

	@Bean
	public String discoveryService() {

		discoveryClient.getServices().forEach(System.out::println);
		
		return "";
	}

}
